import request from '@/utils/request'

// 查询供应商用户列表
export function listSupplyuser(query) {
  return request({
    url: '/system/supplyuser/list',
    method: 'get',
    params: query
  })
}

// 查询供应商用户详细
export function getSupplyuser(id) {
  return request({
    url: '/system/supplyuser/' + id,
    method: 'get'
  })
}

// 新增供应商用户
export function addSupplyuser(data) {
  return request({
    url: '/system/supplyuser',
    method: 'post',
    data: data
  })
}

// 修改供应商用户
export function updateSupplyuser(data) {
  return request({
    url: '/system/supplyuser',
    method: 'put',
    data: data
  })
}

// 删除供应商用户
export function delSupplyuser(id) {
  return request({
    url: '/system/supplyuser/' + id,
    method: 'delete'
  })
}
